<?$form=$this->beginWidget('CActiveForm', array(
    'id'=>'task-list-filter-form',
    'enableAjaxValidation'=>false,
))?>
<?=$form->errorSummary($TASKFILTER)?>
<div class="form">
    
    <table class="filter">
     <tr>
      <td class="fname">Статус:</td>
      <td class="fname" colspan="2">Упорядочить:</td>
     </tr><tr>
      <td class="field"><?=$form->dropDownList($TASKFILTER,'filter[status]',Task::model()->statuses,array('multiple'=>true,'style'=>'height:110px;'))?></td>
      <td class="field"><?=$form->dropDownList($TASKFILTER,'sorter[order]',array(
            'time_create'=>'По дате добавления',
            'sort'=>'По порядку',
        ))?></td>
      <td class="field"><?=$form->dropDownList($TASKFILTER,'sorter[by]',array(
            'asc'=>'По возрастанию',
            'desc'=>'По убыванию',
        ))?></td>
     </tr>
    </table>
    
    <?=CHtml::submitButton(TaskModule::t('app', 'Отфильтровать'))?>
    
</div>

<?$this->endWidget()?>

<div class="clearfix"></div>
